package com.lancoo.answer.util

import android.graphics.Typeface
import android.widget.TextView
import androidx.appcompat.widget.AppCompatTextView

//todo 快乐体
fun AppCompatTextView.setHappyTtf() {
    typeface = Typeface.createFromAsset(context.assets, "fonts/happy.ttf")
}

fun TextView.setTimesNewRomanBoldItalicTtf() {
    typeface =
        Typeface.createFromAsset(context.assets, "fonts/TimesNewRomanBoldItalic.ttf")
}

//todo 汉子斜体加粗
fun TextView.setCoolBlackTtf() {
    typeface =
        Typeface.createFromAsset(context.assets, "fonts/cool_black.TTF")
}

//TODO 数字
fun TextView.setDinBoldTtf() {
    typeface =
        Typeface.createFromAsset(context.assets, "fonts/DIN Condensed Bold.ttf")
}